$OpenBSD: patch-cgi_history_c,v 1.1 2015/01/19 16:59:42 sthen Exp $
--- cgi/history.c.orig	Mon Jan 19 16:18:53 2015
+++ cgi/history.c	Mon Jan 19 16:19:10 2015
@@ -220,8 +220,8 @@ int main(void) {
 		printf("<td align='right' valign='top' width='33%%'>\n");
 
 		printf("<form method=\"GET\" action=\"%s\">\n", HISTORY_CGI);
-		printf("<input type='hidden' name='ts_start' value='%lu'>\n", ts_start);
-		printf("<input type='hidden' name='ts_end' value='%lu'>\n", ts_end);
+		printf("<input type='hidden' name='ts_start' value='%llu'>\n", (long long)ts_start);
+		printf("<input type='hidden' name='ts_end' value='%llu'>\n", (long long)ts_end);
 		printf("<input type='hidden' name='limit' value='%d'>\n", result_limit);
 
 		if (display_type == DISPLAY_HOSTGROUPS)
